package viz.controller.prep
{
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import viz.model.prefs.proxies.PreferenceProxy;
	import viz.view.mediators.FSMModuleMediator;

	public class LoadVizModuleCmd extends SimpleCommand
	{
		override public function execute(note:INotification):void{
			var prefs:PreferenceProxy = PreferenceProxy(facade.retrieveProxy(PreferenceProxy.NAME)),
				url:String = String( prefs.getProperty(PreferenceProxy.VIZ_MODULE_URL) );
			facade.registerCommand( FSMModuleMediator.LOAD_MODULE_READY, SendPreparedActionCmd );
			sendNotification( FSMModuleMediator.LOAD_MODULE, null, url )
		}
		
	}
}